import time

import pyautogui as pg
#p1=pg.locateOnScreen('./img/QQ.png',confidence=1)
x,y=pg.locateCenterOnScreen('./img/QQ.png')
pg.moveTo(x,y,duration=1)
pg.doubleClick()
time.sleep(5)
p1=pg.locateCenterOnScreen('./img/sign-in.png',confidence=0.8)
pg.moveTo(p1,duration=1)
pg.click()
